<div id="comments_wrapper">

{if $comments_num > 0}
	
<div id="comments" class="section">
	<h4> 
		{comments_num} comments, <a href="#respond" title="Leave a comment">Comment</a> or <a href="" rel="trackback">Ping</a>
	</h4>
</div> 
	
<ol class="commentslist">
	
	{for $i=0; $i<count($array); $i++}
	<li class="item" id="comment-{comment_id}">
		
		<div class="fix">
		
			<div class="author_meta">
				<p class="author_meta"><span class="user"><a href="{$array.$i->link}">{$array.$i->author}</a></p>
			</div>
			
			<div class="comment_text">
				<p>
					{$array.$i->body}
				</p>
			</div>
			
			<p class="date_meta">
			
			  {php}
								
					//timestamp template function 
					 echo date('F jS, Y',strtotime($array.$i->date));
					 			
			  {/php}
		
			</p>
		
		</div>
		
	</li>	
	
   {/for}
 
</ol>

{else}

<!-- If comments are open, but there are no comments. -->
 <div id="comments" class="section">
 	<h4>
 		No comments, <a href="#respond" title="Leave a comment">Comment</a>
 	</h4>
</div>

{/if}

 <h2>Leave a Comment</h2>
		
		<form action="{blog_url}" method="post">
		
		<input type="hidden" name="action" value="addcomment">
		<input type="hidden" name="postid" value="{post_id}">
		
		<p><input type="text" name="author" id="author" class="styled" value="" size="22" tabindex="1" class="styled" />
		
		<label for="author">Name</label></p>
		
		<p><input type="text" name="email" id="email" value="" size="22" tabindex="2" class="styled" />
		
		<label for="email">Mail (will not be published)</label></p>
		
		<p><input type="text" name="link" id="url" value="" size="22" tabindex="3" class="styled" />
		<label for="url">Website</label></p>
		
		<p><textarea name="body" cols="90%" rows="9" tabindex="4" class="styled"></textarea></p>
		{akismet}
		{captcha}
		<p><input type="submit" tabindex="5" value="Submit Comment"/></p>
		
		</form>
</div>